import http from '@/http/api.js'

// 上传文件接口
const uploadFile = (file,data={}) => {
	return http.request({
		url: '/blade-resource/oss/endpoint/put-file-attach',
		method: 'UPLOAD',
		filePath: file,
		name: "file",
		...data
	})
}

export default {
	uploadFile
}
